using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TraceNetworkTools._TraceConfiguration
{
    /// <summary>
    /// <para>Export Trace Configurations</para>
    /// <para>Exports named trace configurations from a trace network to JSON format (.json file).</para>
    /// <para>将命名跟踪配置从跟踪网络导出为 JSON 格式（.json文件）。</para>
    /// </summary>    
    [DisplayName("Export Trace Configurations")]
    public class ExportTraceConfigurations : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExportTraceConfigurations()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_trace_network">
        /// <para>Input Trace Network</para>
        /// <para>The trace network containing the named trace configuration or configurations to export.</para>
        /// <para>包含要导出的一个或多个命名跟踪配置的跟踪网络。</para>
        /// </param>
        /// <param name="_trace_config_name">
        /// <para>Trace Configuration</para>
        /// <para>The named trace configuration or configurations to export.</para>
        /// <para>要导出的一个或多个命名跟踪配置。</para>
        /// </param>
        /// <param name="_out_json_file">
        /// <para>Output  File (.json)</para>
        /// <para>The output .json file.</para>
        /// <para>输出.json文件。</para>
        /// </param>
        public ExportTraceConfigurations(object _in_trace_network, List<object> _trace_config_name, object _out_json_file)
        {
            this._in_trace_network = _in_trace_network;
            this._trace_config_name = _trace_config_name;
            this._out_json_file = _out_json_file;
        }
        public override string ToolboxName => "Trace Network Tools";

        public override string ToolName => "Export Trace Configurations";

        public override string CallName => "tn.ExportTraceConfigurations";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_trace_network, _trace_config_name, _out_json_file];

        /// <summary>
        /// <para>Input Trace Network</para>
        /// <para>The trace network containing the named trace configuration or configurations to export.</para>
        /// <para>包含要导出的一个或多个命名跟踪配置的跟踪网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Trace Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_trace_network { get; set; }


        /// <summary>
        /// <para>Trace Configuration</para>
        /// <para>The named trace configuration or configurations to export.</para>
        /// <para>要导出的一个或多个命名跟踪配置。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Trace Configuration")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _trace_config_name { get; set; }


        /// <summary>
        /// <para>Output  File (.json)</para>
        /// <para>The output .json file.</para>
        /// <para>输出.json文件。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output  File (.json)")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_json_file { get; set; }


        public ExportTraceConfigurations SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}